-
Notifications
You must be signed in to change notification settings - Fork 150
feat: staking-cli: concurrent txns, better output #3639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sveitser
wants to merge
14
commits into
main
Choose a base branch
from
ma/stake-for-demo-concurrent-txns
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- allow broadcasting txns without awaiting - output events - check for events in tests - add test to inspect output manually - output to stdout/stderr consistently - always use tracing if RUST_LOG_FORMAT=json
(currently fails)
- Add a type to represent planned transactions. - Give caller control over submission and awaiting of transactions while enforcing that dependencies are respected. - Add balance check. - Add tests.
For some reason the behaviour is different than anvil. I'm not sure if this always fails due to how geth works or if it's just a race condition. In any event it seems adding another transaction receipt await point for approvals seems easier than getting to the bottom of this. If this turns out to be too slow we should just manually track nonces.
- Remove provider from transaction enum variants - Remove token and stake table addresses from transaction enum variants - Consume transaction inputs when creating transactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Concurrent transaction submission for demo staking
while enforcing that dependencies are respected.
staking-cli improvments:
stdout
for CLI output,stderr
for errors and diagnosticsRUST_LOG_FORMAT=json
Example:
Notes for reviewers
The changeset is large but most of the code changes don't change behaviour. Everything
demo.rs
is only used for tests or private testnet setup.To run the staking-cli tests:
cargo test -p staking-cli